var utils = require("../../utils/utils");
var time = require("../../utils/time");
var ocrGml = require("../../utils/ocrGml");
var pointMap = {
  首页任务: {
    points: [
      // prettier-ignore
      648, 2162, 864, 2296,
    ],
    size: {
      x: 1080,
      y: 2400,
    },
  },
};
function inHome() {
  // prettier-ignore
  var contents = [
          "首页",
          "我"
      ]
  var result = ocrGml.captureExistAll(contents);
  if (result) {
    console.log("找到-" + contents.join("和") + "-,判断在首页");
  } else {
    console.log("没找到-" + contents.join("和") + "-");
  }
  return result;
}
function toTask() {
  console.log("前往-首页任务-");
  utils.clickPointMap(pointMap["首页任务"]);
}

var storage = utils.getStorage(time.str("YYYY-MM-DD") + "快手极速");
exports.toTask = toTask;
exports.inHome = inHome;
exports.storage = storage;
